import request from '@/utils/request.js'

// 登录
export const userLogin = (user)=>{
	return request.post('login',user)
}

// 报名
export const userJoin = (joinObj)=>{
	return request.post('classes/ReactJoin',joinObj)
}

// 报名状态查询
export const joinGet = (userId,jobId)=>{
	return request.get('classes/ReactJoin',{
		params:{
			where:{
				userId,
				jobId
			}
		}
	})
}

//更新用户信息
export const userUpdate = (userId,session,userObj)=>{
	return request.put(`users/${userId}`,userObj,{
		header:{
			'X-LC-Session':session
		}
	})
}